home *** CD-ROM | disk | FTP | other *** search
/ PC Media 2 / PC MEDIA CD02.iso / share / os2 / pmglobe / pmglobe.doc next >
Encoding:
Text File  |  1991-12-17  |  13.4 KB  |  294 lines

  1.  
  2. PMGlobe -- an OS/2 Presentation Manager World Globe
  3. ===================================================
  4.  
  5.  
  6. Introduction
  7. """"""""""""
  8. PMGlobe is a program which displays the Earth as a globe using OS/2
  9. Presentation Manager.  You can choose to view the globe from any
  10. direction, or select one of a number of 'standard' views.
  11.  
  12. In addition to simply displaying a picture of the world, PMGlobe will
  13. also let you light the globe as though by sunlight -- so you can see
  14. at a glance those areas of the globe where the sun has risen, and where
  15. it is night.  Additional options add shading to the globe for a
  16. three-dimensional effect, and let you measure distances between
  17. two points on the globe.
  18.  
  19. Other features are described in detail below.  If you have any questions
  20. or suggestions not covered by this document, please use the PMGLOBE
  21. FORUM on the IBMPC disk.
  22.  
  23. Mike Cowlishaw (MFC at WINVMB, or mfc@ibm.com).
  24.  
  25.  
  26. Using the Mouse with PMGlobe
  27. """"""""""""""""""""""""""""
  28. Mouse button 1 is used to select a geographical location on the globe,
  29. and mouse button 2 is used to select a new point of view.  Specifically:
  30.  
  31. * Move the mouse pointer to any visible point on the globe and click
  32.   mouse button 1.  This will cause the 'Position and Distance
  33.   Calculator' to appear (if not already visible).  You can move the
  34.   calculator anywhere on the screen, just like any other window.
  35.   Then:
  36.  
  37.     1. The current position (Latitude and Longitude) of the mouse is
  38.     displayed if the mouse is over the globe.
  39.  
  40.     2. A single click of mouse button 1 records the current point on the
  41.     distance calculator.  Up to two points can be recorded: if two are
  42.     shown then the distance between them is also displayed, in
  43.     kilometers and miles.  (The distance shown is the 'Great Circle
  44.     Distance', that is, the shortest distance between the points when
  45.     moving over the surface of the globe.)
  46.  
  47.     3. A double click of mouse button 1 also records the current point
  48.     on the distance calculator, and makes it a 'fixed' (or 'base')
  49.     point.  This keeps that point visible on the calculator while you
  50.     select any number of other points.  You can set a new fixed point by
  51.     double-clicking mouse button 1 at another position.
  52.  
  53.   You can clear all selected points, including the fixed point, by
  54.   pressing the 'Reset' button on the calculator.
  55.   'Cancel' hides the calculator.
  56.  
  57. * Move the mouse pointer to any visible point on the globe and click
  58.   mouse button 2.  The globe will then be redrawn with that point at the
  59.   center of the view.
  60.  
  61.   Once you have found your preferred view, selection by mouse button 2
  62.   can be disabled from the 'Views' menu, if you wish, to avoid
  63.   accidental change of the view.
  64.  
  65.  
  66. Menu options
  67. """"""""""""
  68. The PMGlobe menu options can be selected from the Action Bar in the
  69. usual way, and fall into three groups (in addition to the Help panel
  70. index):
  71.  
  72.   'Options'  gives access to various miscellaneous settings
  73.   'Views'    is used to select what is seen, and from where
  74.   'Lighting' is used to choose the lighting effects and background shade.
  75.  
  76. Each group (and each submenu in each group) has a summary 'Help' panel
  77. as its first selection.  The other selections are as follows:
  78.  
  79. 'Options' -- miscellaneous settings
  80.  
  81.   'Position/distance calculator': when selected this makes the position
  82.     and distance calculator appear (it will also appear automatically
  83.     if you click on the window with mouse button 1).  See above for
  84.     information on how to use the calculator.
  85.  
  86.   'Make window square': makes the window fit the globe on all edges,
  87.     if possible (it may not be possible on some very narrow or low
  88.     windows).  This is an instantaneous action; the window size and
  89.     position is not saved by PMGlobe (there are other programs, such as
  90.     GO, that let you start PMGlobe at a certain position and size).
  91.  
  92.   'Make full screen': enlarges the window to fill the screen entirely,
  93.     so that the title and action bars and the frame are just off the
  94.     screen and so not visible.  You can still use OS/2 key combinations
  95.     to move the window, select action bar items, etc.  For example: F10
  96.     followed by "O" will pull down the 'Options' menu.
  97.  
  98.   'Make desktop': enlarges the window to fit the screen entirely, and
  99.     puts it behind all other windows.  Click anywhere visible to end
  100.     PMGlobe or bring it to the foreground.  (In the foreground it will
  101.     still fill the screen: use OS/2 key combinations to move the window,
  102.     or select action bar items -- F10 and keystroke, etc.)  This option
  103.     may not work with all versions of OS/2...
  104.  
  105.   'Set timezone': this pops up a dialog that lets you set the time zone
  106.     information.  You only need to do this for the 'sunlight' view, and
  107.     even then only need to do it once.  If no other program updates the
  108.     current time zone information then you may also have to change it
  109.     whenever you change the clock on your computer for daylight saving
  110.     (summer or winter) time.
  111.  
  112.   'Set refresh time': this lets you choose how long PMGlobe will wait
  113.     after drawing a view of the globe before it redraws it.  This only
  114.     takes effect for the 'Sunlight' view, which needs regular updating
  115.     to give a useful picture.
  116.  
  117.   'Save settings': this saves the settings you have selected; they will
  118.     then be used automatically when PMGlobe is next started.  See below
  119.     for details of which settings are saved.
  120.  
  121.   'Save windows': this saves the position and size of the main PMGlobe
  122.     window, and the position of the distance calculator.  These will
  123.     be used automatically when PMGlobe is next started.
  124.  
  125.   'Close': leaves PMGlobe.  If you changed any of the settings, this
  126.     will also give you the chance of saving the settings (as will
  127.     closing the window from the system menu).
  128.  
  129. 'Views' -- where and what you see
  130.  
  131.   'Standard views': this gives you a choice of standard views (Europe &
  132.     Africa, Americas, India & Asia, Pacific, and the two Poles).  Use
  133.     mouse button 2 (see above) to select any point to be placed at the
  134.     center of the view.
  135.  
  136.   'Grid lines': lets you choose which grid lines (if any) are to be
  137.     shown, and the color of the grid lines.
  138.  
  139.   'Allow mouse button 2': if selected, lets you rotate and tilt the
  140.     globe using Mouse Button 2 (see above).  It can be de-selected to
  141.     prevent accidental movement of the direction of view.
  142.  
  143.   'Snap to equator': this leaves the Longitude of the center of view
  144.     unchanged and sets the Latitude to zero (the equator).  Globe
  145.     drawing is faster when the Latitude of the center of view is zero
  146.     than when globe is tilted.
  147.  
  148.   'Snap to Greenwich': sets the Longitude of the center of to zero (the
  149.     Prime Meridian) while leaving the Latitude unchanged.  This has no
  150.     effect on drawing time.
  151.  
  152. 'Lighting' -- how the globe is seen
  153.  
  154.   'Sunlight': asks for "sun lighting" of the globe.  This lets you see
  155.     at a glance which parts of the world are in daylight, and which are
  156.     in the dark.  This lighting is (of course) time dependent, so
  157.     PMGlobe needs to know the time zone you are in, and will ask you for
  158.     it if it is not already set.  If Sunlight is selected, the globe
  159.     will be redrawn (at intervals selected via 'Set refresh time', under
  160.     'Options').  See below for notes on the accuracy of the time and
  161.     sunlight information.
  162.  
  163.   'Sunlight from Space': is similar to 'Sunlight', except that it is
  164.     more realistic -- you cannot see details on the dark side of the
  165.     earth.  For best realism, choose a black background, 3-D, and no
  166.     grid lines (or perhaps low-key grid lines, such as GREY).  This
  167.     setting implies (sets) 'Sunlight'.
  168.  
  169.   '3-D': adds shading, to give the globe a "three-dimensional"
  170.     appearance.  On a VGA screen there are only two shades of green and
  171.     blue available, so this will give a rather grainy and mottled
  172.     appearance (especially if Sunlight is selected too), so this setting
  173.     is then more of a curiosity than of general use.  On a BGA (8514),
  174.     or better screen and adapter, smoother shading is possible.
  175.  
  176.   'Background shade': lets you select the background shade (Black, Grey,
  177.     Pale Grey, or White).  This may be useful for display on monochrome
  178.     or laptop screens.  A black background gives a nice 'deep space
  179.     background' effect, though may be a bit too much of a contrast for
  180.     some tastes.
  181.  
  182.  
  183. Data and time limits and accuracy
  184. """""""""""""""""""""""""""""""""
  185. The data used for presenting the globe is loaded in compressed form (a
  186. little less than 10 kilobytes).  The coastline and lake data were
  187. derived from a variety of sources, with some manual editing to improve
  188. the representation in critical areas.  The accuracy of the coastline and
  189. other data is not guaranteed in any way, but is believed to be within
  190. 40km (25miles) in the worst case (near the equator) and significantly
  191. better in the East-West direction in Northern and Southern latitudes.
  192.  
  193. When the distance calculator is used, the mouse position can only be
  194. determined to the nearest pel (picture element) on the screen.  The
  195. longitude and latitude is then reported as being at the center of that
  196. pel.  Distance calculations between the two positions thus reported are
  197. then calculated from those coordinates and should be accurate to the
  198. nearest unit (km or mile), or 0.2%, whichever is greater.  The 0.2%
  199. limit is a consequence of assumption used in the calculation that the
  200. earth is spherical (which it is not).
  201.  
  202. Time and sun position calculations are only important when 'Sunlight' is
  203. selected.  In this case, PMGlobe needs to know the current date and
  204. time-of-day (taken from your computer's clock -- make sure it is set
  205. correctly).  It also needs to know which time zone you are in: if not
  206. already set it will ask you to set it (you may also need to change it
  207. if your computer clock is changed for daylight saving, summer, or winter
  208. time).
  209.  
  210. From the current time and time zone information, PMGlobe can determine
  211. apparent solar time (up to 16 minutes different from the Civil time used
  212. for clocks) and hence the sun's position.  This is then used to display
  213. the globe as though lit by the sun: the light/dark dividing line thus
  214. shows where the sun is rising or setting.
  215.  
  216. The various calculations done should give an accuracy of sun position of
  217. somewhat better than one minute of time.  Actual sunset or sunrise times
  218. will be different because of atmospheric effects, which vary with the
  219. time of year and latitude.  However, PMGlobe gives a useful indication
  220. of the time, and of course lets you see at a glance which parts of the
  221. globe are in night or daylight.
  222.  
  223.  
  224. Performance considerations
  225. """"""""""""""""""""""""""
  226. PMGlobe is designed as a '32-bit' application, with heavy use of long
  227. (32-bit) integers.  In its 16-bit version it spends more than 40% of its
  228. time in simulating 32-bit instructions, but even so, performance is good
  229. for this type of application.  In general, the simpler the image
  230. presented then the faster it is drawn.  Non-equatorial views take
  231. significantly longer than equatorial views (hence the 'Snap to equator'
  232. option).
  233.  
  234.  
  235. Saved settings
  236. """"""""""""""
  237. The following settings are saved when 'Save settings' is selected.  If
  238. any of these are changed, then on leaving PMGlobe you are given the
  239. opportunity to save them before leaving:
  240.  
  241.   Latitude and Longitude of the centre point of the view
  242.   Whether mouse button two is active ('Allow mouse button 2')
  243.   Whether 'Desktop' is selected (globe acts as wallpaper)
  244.   Grid (Meridians and Parallels) selections and color
  245.   Lighting selections (Sunlight, Sunlight from space, 3-D)
  246.   Background shade
  247.   Refresh (re-draw) interval.
  248.  
  249. The following settings are saved when 'Save windows' is selected:
  250.  
  251.   The position and size of the main (globe) window
  252.   The position of the 'Position/distance calculator' window.
  253.  
  254. The following setting is saved when Mouse button 1 is double-clicked on
  255. the globe:
  256.  
  257.   The latitude and longitude of the current 'fixed point'.  This is
  258.   cleared when 'Reset' is selected in the Position/distance calculator.
  259.  
  260.  
  261. Time Zone interface details
  262. """""""""""""""""""""""""""
  263. Personal computer operating systems have a variety of ways of holding
  264. timezone information (some compilers even build in a default
  265. geographical location!), but to date no standard mechanism has been
  266. defined.
  267.  
  268. PMGlobe introduces a mechanism for holding timezone information that
  269. might form the basis for a standard for OS/2.  The current timezone
  270. offset, daylight savings offset, and timezone name is held in the
  271. system file "OS2SYS.INI" in a general format that any application can
  272. use and which can easily be accessed by application programs (for
  273. example, by C or REXX programs).
  274.  
  275. Specifically, the information is held as three words in the OS2SYS.INI
  276. file, under the name "TimeZone" with key "Active".  This string holds at
  277. least three words separated by exactly one blank, and with no leading
  278. blanks.   The third word will be followed by either a blank (to allow
  279. future extension) or the C 'end of string' null character.
  280.  
  281. The three words are:
  282.  
  283.   base-time-offset-from-GMT  winter/summer-time-offset  zone-name
  284.  
  285. where the two times have the format <+|-><h>h<:<m>m<:<s>s>>> and the
  286. zone-name is either "???" (indicating unknown) or "xxx", where xxx are
  287. three uppercase alphabetics.
  288.  
  289. The total offset from GMT is the sum of the two time offsets.
  290.  
  291. ----------
  292.  
  293. Copyright (c) IBM Corporation, 1991.  Author: Mike Cowlishaw.
  294.